exports.index = function(form){
	var nickName = form.getSession().attr('nickName');
	if(nickName){
		return exports.logInRoom(form);
	}
	return {};
}

exports.logInRoom = function(form){
	var nickName = form.getSession().attr('nickName');
	if(!nickName){
		nickName = form.getParam('nickName');
		if(nickName){
			form.getSession().attr('nickName', nickName);
		}else{
			return '_f:.index';
		}
	}
}